// ActionScript file
// 往工作区添加饰品
private function addJewelry(url_x:String, name_x:String):void{
	var img:Image = new Image();
	img.source = url_x;
	img.id = 'jewe_'+name_x;
	img.name = img.id;
	img.percentHeight = 100;
	img.percentWidth = 100;
	img.maintainAspectRatio = false;
	
	var oh:ObjectHandles = new ObjectHandles();
	oh.addChild(img);
	oh.allowRotate = true;
	oh.y = 88;
	oh.height = 100;
	oh.width = 100;
	oh.id = 'oh_'+img.id+currentElement.length;
	img.addEventListener(ResizeEvent.RESIZE, resizeJewe);
	mainpaint.addChild(oh);
	mainpaint.setChildIndex(oh, mainpaint.numChildren-1);
	
}
// addJewelry回调
private function resizeJewe(event:ResizeEvent):void{
	// nothing is here.
}